#ifndef SEARCHITEM_H
#define SEARCHITEM_H

#include <QWidget>
#include <data/UserInfo.pb.h>
#include <CommonUtils.h>

namespace Ui {
class SearchItem;
}

class SearchItem : public QWidget
{
    Q_OBJECT

public:
    explicit SearchItem(QWidget *parent = nullptr);
    ~SearchItem();

    void setInfo(std::shared_ptr<::proto::data::UserInfo> info);

private slots:
    void on_btn_add_clicked();
    void onAddFriends(int code, QString message, std::shared_ptr<::proto::data::FriendInfo> info);

private:
    Ui::SearchItem *ui;
    std::shared_ptr<::proto::data::UserInfo> info;
};

#endif // SEARCHITEM_H
